cmake_minimum_required(VERSION 3.8)
FILE (GLOB ALL_SOURCES "*.cpp" "*.c" "./src/*.cpp" )
FILE (GLOB ALL_INCLUDES "*.hpp" "*.h" "./include/*.hpp"  "./include/*.h" )
project(Sign_Server)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
find_package(Libevent REQUIRED)
if(Libevent_FOUND)
    add_executable(${PROJECT_NAME} ${ALL_SOURCES})
    target_include_directories(${PROJECT_NAME} PUBLIC ${ALL_INCLUDES})
else()
    message("not found Libevent")
endif(Libevent_FOUND)

